#!/usr/bin/env python


def parse(filename):
	key_value = {}
	fp = open(filename, "r")
	for line in fp:
		line = line.strip()
		if len(line) == 0 or line[0] == "#":
			# comment line
			pass
		else:
			split = line.split("\t")
			key_value[split[0]] = split[1]
	fp.close()
	return key_value

if __name__ == '__main__':
	parse("quapi.conf")	
